package com.bootdo.contract.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.bootdo.contract.dao.AlarmDao;
import com.bootdo.contract.domain.AlarmDO;
import com.bootdo.contract.service.AlarmService;



@Service
public class AlarmServiceImpl implements AlarmService {
	@Autowired
	private AlarmDao alarmDao;
	
	@Override
	public AlarmDO get(Integer id){
		return alarmDao.get(id);
	}
	
	@Override
	public List<AlarmDO> list(Map<String, Object> map){
		return alarmDao.list(map);
	}
	
	@Override
	public int count(Map<String, Object> map){
		return alarmDao.count(map);
	}
	
	@Override
	public int save(AlarmDO alarm){
		return alarmDao.save(alarm);
	}
	
	@Override
	public int update(AlarmDO alarm){
		return alarmDao.update(alarm);
	}
	
	@Override
	public int remove(Integer id){
		return alarmDao.remove(id);
	}
	
	@Override
	public int batchRemove(Integer[] ids){
		return alarmDao.batchRemove(ids);
	}
	
}
